package com.hang.gymmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hang.gymmanager.entity.PlaceEntity;
import com.hang.gymmanager.res.PlaceDetailActRes;
import com.hang.gymmanager.res.PlaceDetailRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

@Component
@Mapper
public interface PlaceMapper extends BaseMapper<PlaceEntity> {

    List<PlaceDetailActRes> getPlaceDetail(@Param("placeId") Integer placeId,
                                           @Param("day") LocalDate day,
                                           @Param("startTime") LocalTime startTime,
                                           @Param("endTime") LocalTime endTime);
}
